--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
docs/agents/skills/test-loop/SKILL.md dev (af76f09d) Text, 1.32 KB
Skill: test-loop
Focused verification with task/uv/pnpm without hanging shells.
MeshChatX Test Loop
Default order
1. Lint/format only the touched surface if needed
2. Focused unit tests for changed files
3. Broader suite only if asked or if cross-cutting
Preferred commands
T282828
T8b949e# Backend focused
uv run pytest tests/backend/test_<name>.py -q --tbTff7b72=short
T8b949e# Frontend focused
pnpm Tffa657exec vitest run tests/frontend/<Name>.test.js
T8b949e# Quick regression
task test:quick
T8b949e# Extended Edge Case Tester / Live Validation
task test:eect
task test:lv:l0
Te6edf3MESHCHAT_LIVE_VALIDATIONTff7b72=T79c0ff1 task test:lv
T8b949e# Broader
task test:backend
task test:frontend
Anti-hang rules
• Do not pipe long pytest runs through T383838| tail in agent shells (blocks until process ends).
• Prefer T383838--tb=short / T383838-q and explicit file lists.
• Skip or isolate T383838long_running / notification soak tests unless explicitly requested.
• Landlock apply tests: always subprocess.
After UI edits
T282828
pnpm Tffa657exec eslint <changed.vue> --fix
pnpm Tffa657exec vitest run tests/frontend/<related>.test.js
After identity / Landlock edits
Run the matching skill's verification section before claiming done: T383838landlock-sqlite for the full Landlock/SQLite/AppContainer command set, T383838identity-switch-teardown or T383838identity-restore for identity flows.
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────